package com.shanglida.main;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.shanglida.R;
import com.shanglida.base.BaseActivity;
import com.shanglida.main.need.Anti_FakeActivity;
import com.shanglida.main.need.CultureActivity;

public class TabNeed extends BaseActivity {
	private ImageView mbaike, manti;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tab_need);
		initView();
		initData();
	}

	@Override
	protected void initData() {
		mbaike.setOnClickListener(this);
		manti.setOnClickListener(this);
	}

	@Override
	protected void initView() {
		mbaike = (ImageView) findViewById(R.id.studybaike);
		manti = (ImageView) findViewById(R.id.fangwei);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		// 启动百科 酒文化
		case R.id.studybaike:
			Intent Baike = new Intent(TabNeed.this, CultureActivity.class);
			startActivity(Baike);
			break;
		// 防伪
		case R.id.fangwei:
			Intent Anti = new Intent(TabNeed.this, Anti_FakeActivity.class);
			startActivity(Anti);
			break;

		default:
			break;
		}
	}
}
